import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/monitor',
    component: () => import('../views/layout'),
    children: [
      {
        path: 'monitor',
        name: 'monitor',
        component: () => import('../views/monitor/monitor.vue')
      },
      {
        path: 'monitor1',
        name: 'monitor1',
        component: () => import('../views/monitor/monitor1.vue')
      },
      {
        path: 'monitor2',
        name: 'monitor2',
        component: () => import('../views/monitor/monitor2.vue')
      },

    ]
  },

]

const router = new VueRouter({
  mode: "hash",
  routes
})

export default router
